import Vue from 'vue'
import App from './App.vue'
import ElementUI from 'element-ui'; // 2.1引入结构
import 'element-ui/lib/theme-chalk/index.css'; // 2.2引入样式
Vue.use(ElementUI); // 3.安装
Vue.use(VueRouter);


import VueRouter from 'vue-router'
Vue.use(VueRouter);
import router from './router'

new Vue({
  el: '#app',
  render: h => h(App),
  router,
  beforeCreate() {
    Vue.prototype.$bus = this; //安装全局事件总线，$bus就是当前应用的vm
  },
}).$mount('#app')
